package com.houweishi.module.contract.domain;

import com.houweishi.module.copy.domain.BizCopy;
import com.houweishi.module.record.domain.BizApprovalRecord;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.houweishi.common.annotation.Excel;
import com.houweishi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 法务审批对象 oa_contract_approval
 * 
 * @author houweishi
 * @date 2023-02-21
 */
@Data
public class OaContractApproval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 用户名（发起人） */
    @Excel(name = "用户名", readConverterExp = "发=起人")
    private String username;

    /** 员工id */
//    @Excel(name = "员工id")
    private Long staffId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String staffName;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 合同上传 */
    @Excel(name = "合同上传")
    private String contractUpload;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 所属租户 */
//    @Excel(name = "所属租户")
    private Long tenantId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 是否使用模板（1是 2否） */
    @Excel(name = "是否使用模板")
    private String typeStatus;

    /** 模板id */
//    @Excel(name = "模板id")
    private Long typeId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String typeName;

    /** 审批人(多个） */
    private String approver;

    /** 审批人姓名(多个） */
    private String approverName;

    /** 申请表类型id */
//    @Excel(name = "申请表类型id")
    private Long subscribePatternId;

    /** 申请表类型名称 */
    @Excel(name = "申请表类型名称")
    private String subscribePatternName;

    /** 用户id */
//    @Excel(name = "用户id")
    private Long userId;

    /** 抄送人id */
//    @Excel(name = "审批人id")
    private String copyerId;

    /** 抄送人姓名 */
    @Excel(name = "审批人姓名")
    private String copyerName;

    /** 抄送记录列表 */
    private List<BizCopy> bizCopyList;

    /** 审批记录列表 */
    private List<BizApprovalRecord> approvalRecordList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setStaffName(String staffName) 
    {
        this.staffName = staffName;
    }

    public String getStaffName() 
    {
        return staffName;
    }
    public void setContractType(String contractType) 
    {
        this.contractType = contractType;
    }

    public String getContractType() 
    {
        return contractType;
    }
    public void setContractUpload(String contractUpload) 
    {
        this.contractUpload = contractUpload;
    }

    public String getContractUpload() 
    {
        return contractUpload;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("username", username)
                .append("staffId", staffId)
                .append("staffName", staffName)
                .append("contractType", contractType)
                .append("serialNum", serialNum)
                .append("contractUpload", contractUpload)
                .append("status", status)
                .append("tenantId", tenantId)
                .append("delFlag", delFlag)
                .append("typeStatus", typeStatus)
                .append("typeId", typeId)
                .append("typeName", typeName)
                .append("approver", approver)
                .append("approverName", approverName)
                .append("subscribePatternId", subscribePatternId)
                .append("subscribePatternName", subscribePatternName)
                .append("userId", userId)
                .append("copyerId", copyerId)
                .append("copyerName", copyerName)
                .append("bizCopyList", bizCopyList)
                .append("approvalRecordList", approvalRecordList)
                .toString();
    }
}
